<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ include file="/pub/siteinclud.jsp"%>
<html>
<head>
<title>无标题文档</title>
<style type="text/css">
<!--
.cgray{ font-size:12px; color:#999; text-decoration:none;}
.cgray:hover{ text-decoration:underline;}
.cblue{ color:#1c5398;}
.box{ width:263px; height:214px; border:1px solid #e4e4e4; background:#fafafa; padding:25px;}
.box b{ font-size:16px; color:#000; }
.box_input{ margin:30px 0 0 0; width:240px; color:#666; font-size:12px;}
.box_input input{ height:25px; width:186px; border:1px solid #e4e4e4; line-height:27px;}
.box_input span{ margin-bottom:10px; display:block;}
.button{ width:240px; border-bottom:1px dashed #eee; height:46px; padding-top:10px; text-align:center;}
.button img{ margin-right:10px;}
.register{ color:#999; font-size:12px; margin-top:20px; text-align:center}
-->
</style>
<script type="text/javascript">
	function login(){
		var options = {
			type: 'POST',
			async: false,
			dataType: 'content-type',
			success: function(msg) {
				if(msg=="success"){
				parent.location.reload();
				closedailog1("loginwin");
				}else{
					alert("用户名或密码错误！");
				}
			}
		}
		$('#loginform').ajaxSubmit(options);
	}
	function zhuce(){
		opendailog1("{id:'loginwin',src:'register',title:'用户注册',width:540,height:380}");
	}
	
</script>
</head>

<body style="margin: 25px auto">
<center>
<form id="loginform" action="<%=path%>/ext/site_user/login" style="" method="post">
<input type="hidden" name="site_id" value="yblsite01"/>
<div class="box">
    <div class="box_input">
      <span>帐号：<input type="text" name="login_name" id="login_name" /></span>
      <span>密码：<input type="password" name="password" id="password" /></span>
    </div>
    <div class="button"><img onclick="login()"  src="<%=request.getContextPath() %>/site/${SiteAccessPath}/images/delu.jpg" /><a href="#" class="cgray">忘记密码？</a></div>
    <div class="register">还没有帐号？ <a href="#" onclick="zhuce()" class="cblue">立即注册</a></div>
</div>
</form>
</center>
</body>
</html>
